﻿using UnityEngine;
using System.Collections;

public class FollowBird : MonoBehaviour
{

    private GameObject bird;

    private Transform birdTransform;

	// Use this for initialization
	void Start ()
	{
	    bird = GameObject.FindGameObjectWithTag("Player");
	    birdTransform = bird.transform;

	}
	
	// Update is called once per frame
	void Update ()
	{
	    this.transform.position = new Vector3(bird.transform.position.x + 5.42f, this.transform.position.y, -10);
	}
}
